How to display the file content of fstream to the console using a function

join shbcf.ru